package the.one.weather.model;

//  ┏┓　　　┏┓
//┏┛┻━━━┛┻┓
//┃　　　　　　　┃
//┃　　　━　　　┃
//┃　┳┛　┗┳　┃
//┃　　　　　　　┃
//┃　　　┻　　　┃
//┃　　　　　　　┃
//┗━┓　　　┏━┛
//    ┃　　　┃                  神兽保佑
//    ┃　　　┃                  永无BUG！
//    ┃　　　┗━━━┓
//    ┃　　　　　　　┣┓
//    ┃　　　　　　　┏┛
//    ┗┓┓┏━┳┓┏┛
//      ┃┫┫　┃┫┫
//      ┗┻┛　┗┻┛

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import org.litepal.crud.LitePalSupport;

/**
 * @author The one
 * @date 2019/5/8 0008
 * @describe TODO
 * @email 625805189@qq.com
 * @remark
 */
public class WeatherFuture extends LitePalSupport implements Parcelable {

    /**
     * date : 周二 05月07日 (实时：13℃)
     * dayPictureUrl : http://api.map.baidu.com/images/weather/day/xiaoyu.png
     * nightPictureUrl : http://api.map.baidu.com/images/weather/night/xiaoyu.png
     * weather : 小雨
     * wind : 无持续风向微风
     * temperature : 16 ~ 12℃
     */

    private int id;
    @SerializedName("date")
    private String date;
    @SerializedName("dayPictureUrl")
    private String dayPictureUrl;
    @SerializedName("nightPictureUrl")
    private String nightPictureUrl;
    @SerializedName("weather")
    private String weather;
    @SerializedName("wind")
    private String wind;
    @SerializedName("temperature")
    private String temperature;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDayPictureUrl() {
        return dayPictureUrl;
    }

    public void setDayPictureUrl(String dayPictureUrl) {
        this.dayPictureUrl = dayPictureUrl;
    }

    public String getNightPictureUrl() {
        return nightPictureUrl;
    }

    public void setNightPictureUrl(String nightPictureUrl) {
        this.nightPictureUrl = nightPictureUrl;
    }

    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public String getWind() {
        return wind;
    }

    public void setWind(String wind) {
        this.wind = wind;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "WeatherFuture{" +
                "id=" + id +
                ", date='" + date + '\'' +
                ", dayPictureUrl='" + dayPictureUrl + '\'' +
                ", nightPictureUrl='" + nightPictureUrl + '\'' +
                ", weather='" + weather + '\'' +
                ", wind='" + wind + '\'' +
                ", temperature='" + temperature + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.date);
        dest.writeString(this.dayPictureUrl);
        dest.writeString(this.nightPictureUrl);
        dest.writeString(this.weather);
        dest.writeString(this.wind);
        dest.writeString(this.temperature);
    }

    public WeatherFuture() {
    }

    protected WeatherFuture(Parcel in) {
        this.date = in.readString();
        this.dayPictureUrl = in.readString();
        this.nightPictureUrl = in.readString();
        this.weather = in.readString();
        this.wind = in.readString();
        this.temperature = in.readString();
    }

    public static final Parcelable.Creator<WeatherFuture> CREATOR = new Parcelable.Creator<WeatherFuture>() {
        @Override
        public WeatherFuture createFromParcel(Parcel source) {
            return new WeatherFuture(source);
        }

        @Override
        public WeatherFuture[] newArray(int size) {
            return new WeatherFuture[size];
        }
    };
}
